str1 = 'abcde'
str2 = 'be'
str3 = ''
for i in str1:
    if not(i in str2):
        str3 += i
print(str3)
